/*
 * @Author: 王灿
 * @Date: 2019-11-02 22:55:00
 * @Description: 首页路由
 */
import Layout from '@/views/layout'
export default [{
        path: '/home',
        name: 'home',
        component: Layout,
        meta: { title: '首页' },
        iconClass: 'el-icon-menu',
        children: [{
                path: '/home-user',
                name: 'home-user',
                component: () =>
                    import ('@/views/home/home-user/index'),
                meta: { title: '用户管理' },
                children: []
            },
            {
                path: '/home-customer',
                name: 'home-customer',
                component: () =>
                    import ('@/views/home/home-customer/index'),
                meta: { title: '客户管理' },
                children: []
            },
            {
                path: '/home-carousel',
                name: 'home-carousel',
                component: () =>
                    import ('@/views/home/home-carousel/index'),
                meta: { title: '轮播图管理' },
                children: []
            }
        ]
    },
    {
        path: '/commodity',
        name: 'commodity',
        component: Layout,
        meta: { title: '商品' },
        iconClass: 'el-icon-goods',
        children: [{
                path: '/commodity-management',
                name: 'commodity-management',
                component: () =>
                    import ('@/views/commodity/index'),
                meta: { title: '商品管理' },
                children: []
            },
            {
                path: '/commodity-gift',
                name: 'commodity-gift',
                component: () =>
                import ('@/views/commodity/commodity-gift/index'),
                meta: { title: '礼包配置' },
                children: []
            },
            {
                path: '/commodity-collection',
                name: 'commodity-collection',
                component: () =>
                    import ('@/views/commodity/commodity-collection/index'),
                meta: { title: '商品收藏' },
                children: []
            },
            {
                path: '/commodity-activity',
                name: 'commodity-activity',
                component: () =>
                    import ('@/views/commodity/commodity-activity/index'),
                meta: { title: '活动管理' },
                children: []
            },
            {
                path: '/commodity-coupon/coupon-template',
                name: 'coupon-template',
                component: () =>
                    import ('@/views/commodity/commodity-coupon/coupon-template/index'),
                meta: { title: '优惠券模板' },
                children: []
            },
            {
                path: '/commodity-coupon',
                name: 'commodity-coupon',
                component: () =>
                    import ('@/views/commodity/commodity-coupon/index'),
                meta: { title: '优惠券管理' },
                children: []
            }
        ]
    },
    {
        path: '/configure',
        name: 'configure',
        component: Layout,
        meta: { title: '系统' },
        iconClass: 'el-icon-set-up',
        children: [{
                path: '/configure-index',
                name: 'configure-index',
                component: () =>
                    import ('@/views/configure/index'),
                meta: { title: '默认配置' },
                children: []
            }, {
                path: '/configure-vip',
                name: 'configure-vip',
                component: () =>
                    import ('@/views/configure/configure-vip/index'),
                meta: { title: 'VIP礼包' },
                hidden: true,
                children: []
            },
            {
                path: '/configure-newspaper',
                name: 'configure-newspaper',
                component: () =>
                    import ('@/views/configure/configure-newspaper/index'),
                meta: { title: '首页早报' },
                children: []
            }
        ]
    },
    {
        path: '/order',
        name: 'order',
        component: Layout,
        meta: { title: '订单' },
        iconClass: 'el-icon-s-order',
        children: [{
                path: '/order-center',
                name: 'order-center',
                component: () =>
                    import ('@/views/order/index'),
                meta: { title: '订单中心' },
                children: []
            },{
                path: '/order-internetion',
                name: 'order-internetion',
                component: () =>
                    import ('@/views/order/order-internetion/index'),
                meta: { title: '国际订单' },
                children: []
            }, {
                path: '/order-address',
                name: 'order-address',
                component: () =>
                    import ('@/views/order/order-address/index'),
                meta: { title: '订单地址' },
                children: []
            },
            {
                path: '/order-refund',
                name: 'order-refund',
                component: () =>
                    import ('@/views/order/order-refund/index'),
                meta: { title: '订单退货' },
                children: []
            },
            {
                path: '/order-evaluate',
                name: 'order-evaluate',
                component: () =>
                    import ('@/views/order/order-evaluate/index'),
                meta: { title: '评价管理' },
                children: []
            },
            {
                path: '/order-withdraw',
                name: 'order-withdraw',
                component: () =>
                    import ('@/views/order/order-withdraw/index'),
                meta: { title: '提现管理' },
                children: []
            }
        ]
    },
    {
        path: '/course',
        name: 'course',
        component: Layout,
        meta: { title: '课程' },
        iconClass: 'el-icon-notebook-1',
        children: [{
                path: '/course-template',
                name: 'course-template',
                component: () =>
                    import ('@/views/course/index'),
                meta: { title: '课程模板' },
                children: []
            },
            {
                path: '/course-management',
                name: 'course-management',
                component: () =>
                    import ('@/views/course/course-management/index'),
                meta: { title: '课程管理' },
                children: []
            },
            {
                path: '/course-ticket',
                name: 'course-ticket',
                component: () =>
                    import ('@/views/course/course-ticket/index'),
                meta: { title: '课程门票' },
                children: []
            }
        ]
    },
    {
        path: '/system',
        name: 'system',
        component: Layout,
        meta: { title: '咨讯' },
        iconClass: 'el-icon-question',
        children: [{
            path: '/system-inform',
            name: 'system-inform',
            component: () =>
                import ('@/views/system/index'),
            meta: { title: '咨讯' },
            children: []
        }]
    }
]